((Application)application()).addGuest(currentGuest); currentGuest = new Guest();
This code calls the application's addGuest method, which adds an object (in this case, currentGuest) to the end of the array. Then it creates a new Guest object to hold the next guest's data.
Table of Contents
Next Section